<#import "../../common/layout.ftl" as l>


<@l.content>


<form id="pagination-form" method="post">

    <input type="hidden" name="page" value="${pageInfo.pageNum}">
    <input type="hidden" name="totalPage" value="${pageInfo.pages}">
    <div class="ibox">
        <div class="ibox-title">
            <h3><#if Session['currentMenu']??>${Session['currentMenu'].name}<#else></#if></h3>

            <#--<div class="ibox-tools">-->
                <#--<a href="#" id="pagination-add">-->
                    <#--<i class="fa fa-plus"></i>-->
                    <#--添加数据-->
                <#--</a>-->
                <#--<a id="pagination-edit" href="#">-->
                    <#--<i class="fa fa-edit"></i>-->
                    <#--编辑数据-->
                <#--</a>-->

                <#--<a id="pagination-delete" href="#">-->
                    <#--<i class="fa fa-trash"></i>-->
                    <#--删除数据-->
                <#--</a>-->

            <#--</div>-->
        </div>
        <div class="ibox-content">
            <div class="input-group search-content">
                <input type="text" name="location" value="<#if param.location??>${param.location}<#else></#if>" class="form-control"> <span class="input-group-btn">
                <input type="submit" class="btn btn-primary" value="搜索">
            </span></div>
            <div>
                <div class="table-responsive">
                    <table class="table table-striped table-hover dataTables-example" >
                        <thead>
                        <tr>
                            <#--<th>编号</th>-->
                            <th>报告日期</th>
                            <th>险情类型</th>
                            <th>事故地点</th>
                            <th>事故发生时间</th>
                            <th>事情经过</th>
                            <th>处理情况</th>
                            <th>船舶</th>
                        </tr>
                        </thead>

                        <tbody>
                            <#list pageInfo.list as report>
                            <tr>
                                <#--<td><#if report.id??>${report.id}<#else></#if></td>-->
                                <td><#if report.dateReport??>${report.dateReport?string('yyyy-MM-dd')}<#else></#if></td>
                                <td><#if report.accidentType??>${report.accidentType}<#else></#if></td>
                                <td><#if report.location??>${report.location}<#else></#if></td>
                                <td><#if report.accidentTime??>${report.accidentTime?string("yyyy-MM-dd HH:mm")}<#else></#if></td>
                                <td><#if report.progressEvents??>${report.progressEvents}<#else></#if></td>
                                <td><#if report.dealResult??>${report.dealResult}<#else></#if></td>
                                <td><#if report.ship.shipName??>${report.ship.shipName}<#else></#if></td>
                            </tr>
                            </#list>
                        </tbody>

                    </table>
                </div>
                <div class="pagination-content">
                    <div id="pagination" class="pagination">
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>


</@l.content>

<script src="/pagination/js/pagination.js"></script>
